@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">
            <div class="row">
                <input type="hidden" id="orgId" value="${item.orgId}">
                <input type="hidden" id="schoolYear" value="${item.schoolYear}">
                <input type="hidden" id="classId" value="${classId}">
                <div class="col-sm-12 b-r">
                    <select id="userId"  class="form-control" id="id_select2_demo1" >
                        @for(student in studentList){
                        <option value="${student.id}">${student.name}</option>
                        @}
                    </select>
                    </div>
                </div>
            </div>
        </div>
        <div class="row btn-group-m-t">
            <div class="col-sm-10" style="text-align: center">
                <#button btnCss="info" name="提交" id="ensure" icon="fa-check"
                clickFun="PtEditClassStudent.addSubmit()"/>
                <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser"
                clickFun="PtEditClassStudent.close()"/>
            </div>
        </div>
    </div>
<script src="${ctxPath}/static/modular/system/ptClass/addStudent.js"></script>
<script>
    $(function () {
        var selectorx = $('#id_select2_demo1').select2();
    });
</script>
@}
